inherited FRelatorioEmissaoPedido: TFRelatorioEmissaoPedido
  Left = 228
  Top = 204
  Width = 868
  Height = 688
  Caption = 'COMPRAS/PEDIDO DE COMPRA/EMISSAO'
  FormStyle = fsNormal
  OldCreateOrder = True
  Visible = False
  PixelsPerInch = 96
  TextHeight = 16
  inherited Panel2: TPanel
    Caption = 'RELAT'#211'RIO PEDIDO DE COMPRA'
  end
  inherited GroupBox1: TGroupBox
    object Label3: TLabel
      Left = 8
      Top = 24
      Width = 58
      Height = 16
      Caption = 'N'#186' Pedido'
    end
    object Label4: TLabel
      Left = 88
      Top = 24
      Width = 81
      Height = 16
      Caption = 'N'#170' Solicitacao'
    end
    object Label6: TLabel
      Left = 8
      Top = 96
      Width = 65
      Height = 16
      Caption = 'Fornecedor'
    end
    object edPedido: TEdit
      Left = 8
      Top = 42
      Width = 70
      Height = 22
      TabOrder = 0
    end
    object edSolicitacao: TEdit
      Left = 88
      Top = 42
      Width = 70
      Height = 22
      TabOrder = 1
    end
    object GroupBox3: TGroupBox
      Left = 184
      Top = 24
      Width = 225
      Height = 65
      Caption = '  Data Pedido  '
      TabOrder = 2
      object Label5: TLabel
        Left = 108
        Top = 32
        Width = 7
        Height = 16
        Caption = 'a'
      end
      object edDataPedidoIni: TDateEdit
        Left = 9
        Top = 29
        Width = 90
        Height = 21
        NumGlyphs = 2
        TabOrder = 0
      end
      object edDataPedidoFim: TDateEdit
        Left = 126
        Top = 29
        Width = 90
        Height = 21
        NumGlyphs = 2
        TabOrder = 1
      end
    end
    object dblFornecedor: TDBLookupComboBox
      Left = 8
      Top = 115
      Width = 401
      Height = 22
      KeyField = 'FORN_CODIGO'
      ListField = 'FORN_RAZAO'
      ListSource = dsFornecedor
      TabOrder = 3
      OnKeyDown = dblFornecedorKeyDown
    end
  end
  inherited RLReport: TRLReport
    Left = 8
    Top = 128
    Width = 816
    Height = 1056
    DataSource = DSPesquisa
    PageSetup.PaperSize = fpLetter
    ShowProgress = False
    inherited RLBand1: TRLBand
      Width = 740
      Height = 90
      inherited rlEmpresa: TRLLabel
        Width = 250
        AutoSize = False
      end
      inherited rlSisLocal: TRLLabel
        Left = -62
        Top = 79
        Visible = False
      end
      inherited rlname: TRLLabel
        Left = 258
        Top = 2
        Width = 250
        AutoSize = False
        BeforePrint = rlnameBeforePrint
      end
      inherited rlSubTitulo: TRLLabel
        Left = 762
        Top = 91
        Width = 330
        AutoSize = False
        Visible = False
      end
      inherited RLMemo: TRLMemo
        Left = 704
        Top = 97
        Height = 14
        Visible = False
      end
      inherited rlInfo: TRLSystemInfo
        Left = 616
        Width = 74
      end
      inherited rlInfo1: TRLLabel
        Left = 824
        Top = 282
      end
      inherited RLSystemInfo1: TRLSystemInfo
        Left = 689
      end
      object rlEmpresa2: TRLLabel
        Left = 2
        Top = 16
        Width = 250
        Height = 14
        AutoSize = False
        Caption = '                     '
      end
      object rlEmpresa3: TRLLabel
        Left = 2
        Top = 30
        Width = 250
        Height = 14
        AutoSize = False
        Caption = '                     '
      end
      object rlEmpresa4: TRLLabel
        Left = 2
        Top = 44
        Width = 250
        Height = 14
        AutoSize = False
        Caption = '                     '
      end
      object rlEmpresa5: TRLLabel
        Left = 2
        Top = 58
        Width = 250
        Height = 14
        AutoSize = False
        Caption = '                     '
      end
      object RLFornecedor1: TRLLabel
        Left = 258
        Top = 35
        Width = 250
        Height = 14
        AutoSize = False
      end
      object RLFornecedor2: TRLLabel
        Left = 258
        Top = 48
        Width = 250
        Height = 14
        AutoSize = False
      end
      object RLDBText14: TRLDBText
        Left = 258
        Top = 22
        Width = 250
        Height = 14
        AutoSize = False
        DataField = 'FORN_RAZAO'
        DataSource = DSPesquisa
      end
      object RLDBText15: TRLDBText
        Left = 258
        Top = 61
        Width = 250
        Height = 14
        AutoSize = False
        DataField = 'FORN_CONTATO'
        DataSource = DSPesquisa
      end
      object RLDBText16: TRLDBText
        Left = 568
        Top = 22
        Width = 81
        Height = 14
        DataField = 'FORN_CPFCNPJ'
        DataSource = DSPesquisa
      end
      object RLLabel26: TRLLabel
        Left = 535
        Top = 22
        Width = 31
        Height = 14
        Caption = 'CNPJ:'
      end
      object RLDBText17: TRLDBText
        Left = 568
        Top = 35
        Width = 115
        Height = 14
        DataField = 'FORN_INSCESTADUAL'
        DataSource = DSPesquisa
      end
      object RLLabel27: TRLLabel
        Left = 549
        Top = 35
        Width = 17
        Height = 14
        Caption = 'IE.:'
      end
      object RLDBText18: TRLDBText
        Left = 568
        Top = 48
        Width = 64
        Height = 14
        DataField = 'FORN_FONE'
        DataSource = DSPesquisa
      end
      object RLDBText19: TRLDBText
        Left = 568
        Top = 61
        Width = 58
        Height = 14
        DataField = 'FORN_FAX'
        DataSource = DSPesquisa
      end
      object RLLabel28: TRLLabel
        Left = 536
        Top = 48
        Width = 30
        Height = 14
        Caption = 'Fone:'
      end
      object RLLabel29: TRLLabel
        Left = 513
        Top = 61
        Width = 53
        Height = 14
        Caption = '(Est)  Fax:'
      end
    end
    object RLGroup1: TRLGroup
      Left = 38
      Top = 128
      Width = 740
      Height = 378
      DataFields = 'PED_CODIGO'
      PageBreaking = pbBeforePrint
      object RLBand2: TRLBand
        Left = 0
        Top = 0
        Width = 740
        Height = 32
        BandType = btHeader
        Borders.Sides = sdCustom
        Borders.DrawLeft = False
        Borders.DrawTop = False
        Borders.DrawRight = False
        Borders.DrawBottom = True
        object RLLabel1: TRLLabel
          Left = 0
          Top = 2
          Width = 51
          Height = 15
          Caption = 'C'#211'DIGO'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel2: TRLLabel
          Left = 75
          Top = 2
          Width = 74
          Height = 15
          Caption = 'DESCRI'#199#195'O'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel3: TRLLabel
          Left = 386
          Top = 2
          Width = 36
          Height = 15
          Caption = 'UNID.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel5: TRLLabel
          Left = 474
          Top = 2
          Width = 47
          Height = 15
          Caption = 'QUANT.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel6: TRLLabel
          Left = 562
          Top = 2
          Width = 56
          Height = 15
          Caption = 'VR. UNIT.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel8: TRLLabel
          Left = 656
          Top = 2
          Width = 59
          Height = 15
          AutoSize = False
          Caption = 'VR.TOTAL'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel30: TRLLabel
          Left = 75
          Top = 16
          Width = 91
          Height = 15
          Caption = 'Ref. Fornecedor'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel31: TRLLabel
          Left = 203
          Top = 16
          Width = 86
          Height = 15
          Caption = 'Ref. Fabricante'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
      end
      object RLBand3: TRLBand
        Left = 0
        Top = 32
        Width = 740
        Height = 31
        object RLDBText2: TRLDBText
          Left = 0
          Top = 1
          Width = 69
          Height = 15
          AutoSize = False
          DataField = 'ITENS_PED_PRODUTO'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText3: TRLDBText
          Left = 75
          Top = 1
          Width = 178
          Height = 15
          DataField = 'ITENS_PED_PRODUTO_DESC'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText4: TRLDBText
          Left = 386
          Top = 1
          Width = 63
          Height = 15
          AutoSize = False
          DataField = 'PROD_UNIDSAIDA'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText5: TRLDBText
          Left = 466
          Top = 1
          Width = 64
          Height = 15
          Alignment = taCenter
          AutoSize = False
          DataField = 'ITENS_PED_QUANTIDADE'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText6: TRLDBText
          Left = 544
          Top = 1
          Width = 74
          Height = 15
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'ITENS_PED_VALOR'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText8: TRLDBText
          Left = 632
          Top = 1
          Width = 83
          Height = 15
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'ITENS_PED_VALOR_TOTAL'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText7: TRLDBText
          Left = 75
          Top = 15
          Width = 122
          Height = 15
          DataField = 'PROD_REFERENCIA'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText9: TRLDBText
          Left = 203
          Top = 15
          Width = 148
          Height = 15
          DataField = 'PROF_REF_FABRICANTE'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
      end
      object RLBand4: TRLBand
        Left = 0
        Top = 63
        Width = 740
        Height = 262
        AlignToBottom = True
        AutoExpand = False
        AutoSize = True
        BandType = btColumnFooter
        object RLLabel14: TRLLabel
          Left = 0
          Top = 41
          Width = 346
          Height = 15
          Caption = 'LOCAL ENTREGA: __________________________________'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel15: TRLLabel
          Left = 0
          Top = 66
          Width = 349
          Height = 15
          Caption = 'LOCAL COBRAN'#199'A: _________________________________'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          SecondHolder = RLBand1
        end
        object RLLabel16: TRLLabel
          Left = 432
          Top = 41
          Width = 73
          Height = 15
          Caption = 'Condi'#231#227'o de'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel17: TRLLabel
          Left = 436
          Top = 58
          Width = 67
          Height = 15
          Caption = 'Pagamento'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel19: TRLLabel
          Left = 0
          Top = 98
          Width = 125
          Height = 15
          Caption = 'CENTRO DE CUSTO: '
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel20: TRLLabel
          Left = 0
          Top = 134
          Width = 112
          Height = 15
          Caption = 'OBS COMPRADOR:'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel21: TRLLabel
          Left = 184
          Top = 192
          Width = 170
          Height = 16
          Alignment = taCenter
          AutoSize = False
          Caption = 'Ger'#234'ncia 1'
          BeforePrint = RLLabel21BeforePrint
        end
        object RLLabel22: TRLLabel
          Left = 364
          Top = 192
          Width = 170
          Height = 16
          Alignment = taCenter
          AutoSize = False
          Caption = 'Ger'#234'ncia 2'
          BeforePrint = RLLabel22BeforePrint
        end
        object RLLabel23: TRLLabel
          Left = 540
          Top = 192
          Width = 170
          Height = 16
          Alignment = taCenter
          AutoSize = False
          Caption = 'Diretoria'
          BeforePrint = RLLabel23BeforePrint
        end
        object RLMemo1: TRLMemo
          Left = 40
          Top = 224
          Width = 633
          Height = 30
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          Lines.Strings = (
            
              'NOTA: S'#243' aceitaremos a mercadoria se na sua NOTA FISCAL constar ' +
              'o n'#250'mero do nosso PEDIDO DE COMPRAS.'
            
              '            Cada NOTA FISCAL devera corresponder a um '#250'nico PEDI' +
              'DO DE COMPRA.')
          ParentFont = False
        end
        object RLDraw4: TRLDraw
          Left = 0
          Top = 36
          Width = 1049
          Height = 4
          DrawKind = dkLine
          Pen.Style = psDot
        end
        object RLDraw5: TRLDraw
          Left = -2
          Top = 86
          Width = 1049
          Height = 4
          DrawKind = dkLine
          Pen.Style = psDot
        end
        object RLDraw6: TRLDraw
          Left = -2
          Top = 217
          Width = 1049
          Height = 4
          DrawKind = dkLine
          Pen.Style = psDot
        end
        object RLDraw7: TRLDraw
          Left = -10
          Top = -1
          Width = 1049
          Height = 4
          DrawKind = dkLine
          Pen.Style = psDot
        end
        object RLDraw8: TRLDraw
          Left = -2
          Top = 258
          Width = 1049
          Height = 4
          DrawKind = dkLine
          Pen.Style = psDot
        end
        object RLDBText10: TRLDBText
          Left = 2
          Top = 2
          Width = 119
          Height = 15
          DataField = 'PED_FRETE'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          Text = 'FRETE: '
        end
        object RLDBText11: TRLDBText
          Left = 119
          Top = 134
          Width = 60
          Height = 15
          DataField = 'PED_OBS'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText12: TRLDBText
          Left = 562
          Top = 41
          Width = 111
          Height = 15
          DataField = 'PED_CONDPAGTO'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText13: TRLDBText
          Left = 562
          Top = 57
          Width = 136
          Height = 15
          DataField = 'PED_PERCONDPAGTO'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel24: TRLLabel
          Left = 515
          Top = 41
          Width = 37
          Height = 15
          Caption = '(Dias)'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel25: TRLLabel
          Left = 515
          Top = 58
          Width = 22
          Height = 15
          Caption = '(%)'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText20: TRLDBText
          Left = 569
          Top = 2
          Width = 146
          Height = 15
          Alignment = taRightJustify
          DataField = 'PED_VALOR_TOT_ITENS'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLDBText20BeforePrint
        end
        object RLDBText21: TRLDBText
          Left = 101
          Top = 2
          Width = 180
          Height = 15
          DataField = 'PED_VALORFRETE'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          Text = 'VR. FRETE: '
        end
        object RLDBText22: TRLDBText
          Left = 588
          Top = 18
          Width = 127
          Height = 15
          Alignment = taRightJustify
          DataField = 'PED_VALOR_PEDIDO'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLDBText22BeforePrint
        end
        object RLLabel4: TRLLabel
          Left = 490
          Top = 2
          Width = 81
          Height = 15
          Caption = 'TOTAL ITENS:'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel7: TRLLabel
          Left = 490
          Top = 18
          Width = 92
          Height = 15
          Caption = 'TOTAL PEDIDO:'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel9: TRLLabel
          Left = 0
          Top = 116
          Width = 58
          Height = 16
        end
        object RLLabel10: TRLLabel
          Left = 184
          Top = 173
          Width = 170
          Height = 17
          Alignment = taCenter
          AutoSize = False
          Borders.Sides = sdCustom
          Borders.DrawLeft = False
          Borders.DrawTop = False
          Borders.DrawRight = False
          Borders.DrawBottom = True
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLLabel10BeforePrint
        end
        object RLLabel11: TRLLabel
          Left = 364
          Top = 173
          Width = 170
          Height = 17
          Alignment = taCenter
          AutoSize = False
          Borders.Sides = sdCustom
          Borders.DrawLeft = False
          Borders.DrawTop = False
          Borders.DrawRight = False
          Borders.DrawBottom = True
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLLabel11BeforePrint
        end
        object RLLabel12: TRLLabel
          Left = 540
          Top = 173
          Width = 170
          Height = 17
          Alignment = taCenter
          AutoSize = False
          Borders.Sides = sdCustom
          Borders.DrawLeft = False
          Borders.DrawTop = False
          Borders.DrawRight = False
          Borders.DrawBottom = True
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLLabel12BeforePrint
        end
        object RLLabel13: TRLLabel
          Left = 8
          Top = 173
          Width = 170
          Height = 17
          Alignment = taCenter
          AutoSize = False
          Borders.Sides = sdCustom
          Borders.DrawLeft = False
          Borders.DrawTop = False
          Borders.DrawRight = False
          Borders.DrawBottom = True
          BeforePrint = RLLabel13BeforePrint
        end
        object RLLabel18: TRLLabel
          Left = 8
          Top = 192
          Width = 170
          Height = 16
          Alignment = taCenter
          AutoSize = False
          Caption = 'Comprador'
        end
      end
    end
  end
  inherited QPesquisa: TQuery
    SQL.Strings = (
      '   SELECT'
      '      PEDIDO.PED_CODIGO,'
      '      PEDIDO.PED_SOLICITANTE_DESC,'
      '      EMPRESA.EMP_CODIGO,'
      '      EMPRESA.EMP_RAZAO,'
      '      EMPRESA.EMP_FANTASIA,'
      '      EMPRESA.EMP_CNPJ,'
      '      EMPRESA.EMP_ENDERECO,'
      '      EMPRESA.EMP_BAIRRO,'
      '      EMPRESA.EMP_CEP,'
      '      EMPRESA.EMP_CIDADE,'
      '      EMPRESA.EMP_ESTADO,'
      '      EMPRESA.EMP_FONE,'
      '      EMPRESA.EMP_FAX,'
      '      EMPRESA.EMP_EMAIL,'
      '      EMPRESA.EMP_INSCESTADUAL,'
      '      EMPRESA.EMP_INSCMUNICIPAL,'
      '      EMPRESA.EMP_RESPONSAVEL,'
      '      EMPRESA.EMP_USACENTROCUSTO,'
      '      EMPRESA.EMP_AUTORIZABAIXA,'
      '      EMPRESA.NUMERONOTAFISCALENTRADA,'
      '      EMPRESA.SERIENOTAFISCALENTRADA,'
      '      EMPRESA.NUMERONOTAFISCALSAIDA,'
      '      EMPRESA.SERIENOTAFISCALSAIDA,'
      '      EMPRESA.NUMEROSELO,'
      '      EMPRESA.SERIESELO,'
      '      EMPRESA.EMP_LAYOUT,'
      '      EMPRESA.EMP_CONTACAIXA,'
      '      EMPRESA.EMP_DATA_ULT_ATU_BASE,'
      '      PEDIDO.PED_OBS,'
      '      PEDIDO.PED_DATA,'
      '      PEDIDO.PED_DATAENTREGA,'
      '      PEDIDO.PED_SITUACAO,'
      '      PEDIDO.PED_DATASITUACAO,'
      '      PEDIDO.PED_VALOR_TOT_ITENS,'
      '      PEDIDO.PED_VALOR_TOT_OUTROS_VALORES,'
      '      PEDIDO.PED_VALOR_DESC0NTO,'
      '      PEDIDO.PED_VALOR_CREDITO,'
      '      PEDIDO.PED_VALOR_PEDIDO,'
      '      PEDIDO.PED_VALOR_TOT_IPI,'
      '      PEDIDO.PED_ORIGEM,'
      '      PEDIDO.PED_FRETE,'
      '      PEDIDO.PED_VALORFRETE,'
      '      PEDIDO.PED_COMPRADOR,'
      '      PEDIDO.PED_TIPO,'
      '      PEDIDO.PED_CONDPAGTO,'
      '      PEDIDO.PED_PERCONDPAGTO,'
      '      PEDIDO.PED_FECHAMENTO,'
      '      PEDIDO.PED_FORNECEDOR,'
      '      PEDIDO.PED_OBS,'
      '      PEDIDO.PED_CRITERIO,'
      '      PEDIDO.PED_COMPRADOR,       '
      '      PEDIDO.PED_AUT1_AUTORI_DESC,'
      '      PEDIDO.PED_AUT2_AUTORI_DESC,'
      '      PEDIDO.PED_AUT3_AUTORI_DESC,'
      '      SOLICITACAO.SOL_CENTROCUSTO_DESC,'
      '      ITENSPEDIDO.ITENS_PED_CODIGO,'
      '      ITENSPEDIDO.ITENS_PED_PRODUTO,'
      '      ITENSPEDIDO.ITENS_PED_QUANTIDADE,'
      '      ITENSPEDIDO.ITENS_PED_QUANTIDADEATEN,'
      '      ITENSPEDIDO.ITENS_PED_VALOR,'
      '      ITENSPEDIDO.ITENS_PED_SITUACAO,'
      '      ITENSPEDIDO.ITENS_PED_VALOR_TOTAL,'
      '      ITENSPEDIDO.ITENS_PED_OUTROS_VALORES,'
      '      ITENSPEDIDO.ITENS_PED_PERC_IPI,'
      '      ITENSPEDIDO.ITENS_PED_VALOR_IPI,'
      '      ITENSPEDIDO.ITENS_PED_PRODUTO_DESC,'
      '      PRODUTO.PROD_UNIDSAIDA,'
      '      PRODUTO.PROD_REFERENCIA,'
      '      PRODUTO.PROF_REF_FABRICANTE,'
      '      FORNECEDOR.FORN_CODIGO,'
      '      FORNECEDOR.FORN_RAZAO,'
      '      FORNECEDOR.FORN_FANTASIA,'
      '      FORNECEDOR.FORN_TIPOFORNECEDOR,'
      '      FORNECEDOR.FORN_CPFCNPJ,'
      '      FORNECEDOR.FORN_INSCESTADUAL,'
      '      FORNECEDOR.FORN_INSCMUNICIPAL,'
      '      FORNECEDOR.FORN_FONE,'
      '      FORNECEDOR.FORN_FAX,'
      '      FORNECEDOR.FORN_EMAIL,'
      '      FORNECEDOR.FORN_ENDERECO,'
      '      FORNECEDOR.FORN_BAIRRO,'
      '      FORNECEDOR.FORN_CEP,'
      '      FORNECEDOR.FORN_CIDADE,'
      '      FORNECEDOR.FORN_ESTADO,'
      '      FORNECEDOR.FORN_OBS,'
      '      FORNECEDOR.FORN_CONTACONTABIL,'
      '      FORNECEDOR.FORN_CONTATO,'
      '      FORNECEDOR.FORN_COD_CENTRO_CUSTO,'
      '      FORNECEDOR.FORN_COD_CLASSIFICACAO_FIN,'
      '      FORNECEDOR.FORN_GRUPO,'
      '      FORNECEDOR.FORN_FK_GRUPO,'
      '      FORNECEDOR.FORN_VALOR_LIMITE,'
      '      FORNECEDOR.FORN_DATA_LIMITE,'
      '      FORNECEDOR.FORN_VALOR_CREDITO,'
      '      FORNECEDOR.FORN_OBS_LIMITE,'
      '      FORNECEDOR.FORN_MR,'
      '      FORNECEDOR.PROD_DATA_MR,'
      '      FORNECEDOR.FORN_NATUREZA,'
      '      FORNECEDOR.FORN_SITE'
      '    FROM'
      '      PEDIDO'
      
        '      INNER JOIN ITENSPEDIDO ON (ITENSPEDIDO.ITENS_PED_PEDIDO = ' +
        'PEDIDO.PED_CODIGO)'
      
        '      INNER JOIN PRODUTO ON (ITENSPEDIDO.ITENS_PED_PRODUTO = PRO' +
        'DUTO.PROD_CODIGO)'
      
        '      INNER JOIN EMPRESA ON (PEDIDO.CODIGOEMPRESA = EMPRESA.EMP_' +
        'CODIGO)'
      
        '      INNER JOIN FORNECEDOR ON (PEDIDO.PED_FORNECEDOR = FORNECED' +
        'OR.FORN_CODIGO)'
      
        '      LEFT JOIN SOLICITACAO ON (PEDIDO.PED_SOLICITACAO = SOLICIT' +
        'ACAO.SOL_CODIGO)')
    Left = 288
    Top = 505
    object QPesquisaPED_CODIGO: TIntegerField
      FieldName = 'PED_CODIGO'
    end
    object QPesquisaPED_SOLICITANTE_DESC: TStringField
      FieldName = 'PED_SOLICITANTE_DESC'
      Size = 60
    end
    object QPesquisaEMP_CODIGO: TIntegerField
      FieldName = 'EMP_CODIGO'
    end
    object QPesquisaEMP_RAZAO: TStringField
      FieldName = 'EMP_RAZAO'
      Size = 60
    end
    object QPesquisaEMP_FANTASIA: TStringField
      FieldName = 'EMP_FANTASIA'
      Size = 60
    end
    object QPesquisaEMP_CNPJ: TStringField
      FieldName = 'EMP_CNPJ'
    end
    object QPesquisaEMP_ENDERECO: TStringField
      FieldName = 'EMP_ENDERECO'
      Size = 60
    end
    object QPesquisaEMP_BAIRRO: TStringField
      FieldName = 'EMP_BAIRRO'
      Size = 60
    end
    object QPesquisaEMP_CEP: TStringField
      FieldName = 'EMP_CEP'
      Size = 10
    end
    object QPesquisaEMP_CIDADE: TStringField
      FieldName = 'EMP_CIDADE'
      Size = 60
    end
    object QPesquisaEMP_ESTADO: TStringField
      FieldName = 'EMP_ESTADO'
      Size = 2
    end
    object QPesquisaEMP_FONE: TStringField
      FieldName = 'EMP_FONE'
    end
    object QPesquisaEMP_FAX: TStringField
      FieldName = 'EMP_FAX'
    end
    object QPesquisaEMP_EMAIL: TStringField
      FieldName = 'EMP_EMAIL'
      Size = 62
    end
    object QPesquisaEMP_INSCESTADUAL: TStringField
      FieldName = 'EMP_INSCESTADUAL'
    end
    object QPesquisaEMP_INSCMUNICIPAL: TStringField
      FieldName = 'EMP_INSCMUNICIPAL'
    end
    object QPesquisaEMP_RESPONSAVEL: TStringField
      FieldName = 'EMP_RESPONSAVEL'
      Size = 60
    end
    object QPesquisaEMP_USACENTROCUSTO: TStringField
      FieldName = 'EMP_USACENTROCUSTO'
      Size = 6
    end
    object QPesquisaEMP_AUTORIZABAIXA: TStringField
      FieldName = 'EMP_AUTORIZABAIXA'
      Size = 6
    end
    object QPesquisaNUMERONOTAFISCALENTRADA: TIntegerField
      FieldName = 'NUMERONOTAFISCALENTRADA'
    end
    object QPesquisaSERIENOTAFISCALENTRADA: TStringField
      FieldName = 'SERIENOTAFISCALENTRADA'
      Size = 3
    end
    object QPesquisaNUMERONOTAFISCALSAIDA: TIntegerField
      FieldName = 'NUMERONOTAFISCALSAIDA'
    end
    object QPesquisaSERIENOTAFISCALSAIDA: TStringField
      FieldName = 'SERIENOTAFISCALSAIDA'
      Size = 3
    end
    object QPesquisaNUMEROSELO: TIntegerField
      FieldName = 'NUMEROSELO'
    end
    object QPesquisaSERIESELO: TStringField
      FieldName = 'SERIESELO'
      Size = 2
    end
    object QPesquisaEMP_LAYOUT: TStringField
      FieldName = 'EMP_LAYOUT'
      Size = 4
    end
    object QPesquisaEMP_CONTACAIXA: TIntegerField
      FieldName = 'EMP_CONTACAIXA'
    end
    object QPesquisaEMP_DATA_ULT_ATU_BASE: TDateTimeField
      FieldName = 'EMP_DATA_ULT_ATU_BASE'
    end
    object QPesquisaPED_OBS: TStringField
      FieldName = 'PED_OBS'
      Size = 255
    end
    object QPesquisaPED_DATA: TDateTimeField
      FieldName = 'PED_DATA'
    end
    object QPesquisaPED_DATAENTREGA: TDateTimeField
      FieldName = 'PED_DATAENTREGA'
    end
    object QPesquisaPED_SITUACAO: TIntegerField
      FieldName = 'PED_SITUACAO'
    end
    object QPesquisaPED_DATASITUACAO: TDateTimeField
      FieldName = 'PED_DATASITUACAO'
    end
    object QPesquisaPED_VALOR_TOT_ITENS: TFloatField
      FieldName = 'PED_VALOR_TOT_ITENS'
      DisplayFormat = '#,##0.00'
    end
    object QPesquisaPED_VALOR_TOT_OUTROS_VALORES: TFloatField
      FieldName = 'PED_VALOR_TOT_OUTROS_VALORES'
      DisplayFormat = '#,##0.00'
    end
    object QPesquisaPED_VALOR_DESC0NTO: TFloatField
      FieldName = 'PED_VALOR_DESC0NTO'
      DisplayFormat = '#,##0.00'
    end
    object QPesquisaPED_VALOR_CREDITO: TFloatField
      FieldName = 'PED_VALOR_CREDITO'
      DisplayFormat = '#,##0.00'
    end
    object QPesquisaPED_VALOR_PEDIDO: TFloatField
      FieldName = 'PED_VALOR_PEDIDO'
      DisplayFormat = '#,##0.00'
    end
    object QPesquisaPED_VALOR_TOT_IPI: TFloatField
      FieldName = 'PED_VALOR_TOT_IPI'
      DisplayFormat = '#,##0.00'
    end
    object QPesquisaPED_ORIGEM: TStringField
      FieldName = 'PED_ORIGEM'
      FixedChar = True
      Size = 1
    end
    object QPesquisaPED_FRETE: TStringField
      FieldName = 'PED_FRETE'
      FixedChar = True
      Size = 3
    end
    object QPesquisaPED_VALORFRETE: TFloatField
      FieldName = 'PED_VALORFRETE'
    end
    object QPesquisaPED_COMPRADOR: TStringField
      FieldName = 'PED_COMPRADOR'
    end
    object QPesquisaPED_TIPO: TStringField
      FieldName = 'PED_TIPO'
      FixedChar = True
      Size = 1
    end
    object QPesquisaPED_CONDPAGTO: TStringField
      FieldName = 'PED_CONDPAGTO'
    end
    object QPesquisaPED_PERCONDPAGTO: TStringField
      FieldName = 'PED_PERCONDPAGTO'
    end
    object QPesquisaPED_FECHAMENTO: TStringField
      FieldName = 'PED_FECHAMENTO'
      FixedChar = True
      Size = 1
    end
    object QPesquisaPED_FORNECEDOR: TIntegerField
      FieldName = 'PED_FORNECEDOR'
    end
    object QPesquisaPED_OBS_1: TStringField
      FieldName = 'PED_OBS_1'
      Size = 255
    end
    object QPesquisaPED_CRITERIO: TIntegerField
      FieldName = 'PED_CRITERIO'
    end
    object QPesquisaPED_COMPRADOR_1: TStringField
      FieldName = 'PED_COMPRADOR_1'
    end
    object QPesquisaPED_AUT1_AUTORI_DESC: TStringField
      FieldName = 'PED_AUT1_AUTORI_DESC'
      Size = 40
    end
    object QPesquisaPED_AUT2_AUTORI_DESC: TStringField
      FieldName = 'PED_AUT2_AUTORI_DESC'
      Size = 40
    end
    object QPesquisaPED_AUT3_AUTORI_DESC: TStringField
      FieldName = 'PED_AUT3_AUTORI_DESC'
      Size = 40
    end
    object QPesquisaITENS_PED_CODIGO: TIntegerField
      FieldName = 'ITENS_PED_CODIGO'
    end
    object QPesquisaITENS_PED_PRODUTO: TIntegerField
      FieldName = 'ITENS_PED_PRODUTO'
    end
    object QPesquisaITENS_PED_QUANTIDADE: TFloatField
      FieldName = 'ITENS_PED_QUANTIDADE'
    end
    object QPesquisaITENS_PED_QUANTIDADEATEN: TFloatField
      FieldName = 'ITENS_PED_QUANTIDADEATEN'
      DisplayFormat = '#,##0.00'
    end
    object QPesquisaITENS_PED_VALOR: TFloatField
      DisplayLabel = 'ITENS_PED_QUANTIDADEATEN'
      FieldName = 'ITENS_PED_VALOR'
      DisplayFormat = '#,##0.0000'
    end
    object QPesquisaITENS_PED_SITUACAO: TIntegerField
      FieldName = 'ITENS_PED_SITUACAO'
    end
    object QPesquisaITENS_PED_VALOR_TOTAL: TFloatField
      DisplayLabel = 'ITENS_PED_QUANTIDADEATEN'
      FieldName = 'ITENS_PED_VALOR_TOTAL'
      DisplayFormat = '#,##0.00'
    end
    object QPesquisaITENS_PED_OUTROS_VALORES: TFloatField
      FieldName = 'ITENS_PED_OUTROS_VALORES'
    end
    object QPesquisaITENS_PED_PERC_IPI: TFloatField
      FieldName = 'ITENS_PED_PERC_IPI'
    end
    object QPesquisaITENS_PED_VALOR_IPI: TFloatField
      DisplayLabel = 'ITENS_PED_QUANTIDADEATEN'
      FieldName = 'ITENS_PED_VALOR_IPI'
      DisplayFormat = '#,##0.00'
    end
    object QPesquisaITENS_PED_PRODUTO_DESC: TStringField
      FieldName = 'ITENS_PED_PRODUTO_DESC'
      Size = 60
    end
    object QPesquisaPROD_UNIDSAIDA: TStringField
      FieldName = 'PROD_UNIDSAIDA'
      Size = 5
    end
    object QPesquisaFORN_CODIGO: TIntegerField
      FieldName = 'FORN_CODIGO'
    end
    object QPesquisaFORN_RAZAO: TStringField
      FieldName = 'FORN_RAZAO'
      Size = 60
    end
    object QPesquisaFORN_FANTASIA: TStringField
      FieldName = 'FORN_FANTASIA'
      Size = 60
    end
    object QPesquisaFORN_TIPOFORNECEDOR: TStringField
      FieldName = 'FORN_TIPOFORNECEDOR'
      Size = 1
    end
    object QPesquisaFORN_CPFCNPJ: TStringField
      FieldName = 'FORN_CPFCNPJ'
    end
    object QPesquisaFORN_INSCESTADUAL: TStringField
      FieldName = 'FORN_INSCESTADUAL'
    end
    object QPesquisaFORN_INSCMUNICIPAL: TStringField
      FieldName = 'FORN_INSCMUNICIPAL'
    end
    object QPesquisaFORN_FONE: TStringField
      FieldName = 'FORN_FONE'
    end
    object QPesquisaFORN_FAX: TStringField
      FieldName = 'FORN_FAX'
    end
    object QPesquisaFORN_EMAIL: TStringField
      FieldName = 'FORN_EMAIL'
      Size = 62
    end
    object QPesquisaFORN_ENDERECO: TStringField
      FieldName = 'FORN_ENDERECO'
      Size = 60
    end
    object QPesquisaFORN_BAIRRO: TStringField
      FieldName = 'FORN_BAIRRO'
      Size = 60
    end
    object QPesquisaFORN_CEP: TStringField
      FieldName = 'FORN_CEP'
      Size = 10
    end
    object QPesquisaFORN_CIDADE: TStringField
      FieldName = 'FORN_CIDADE'
      Size = 60
    end
    object QPesquisaFORN_ESTADO: TStringField
      FieldName = 'FORN_ESTADO'
      Size = 2
    end
    object QPesquisaFORN_OBS: TStringField
      FieldName = 'FORN_OBS'
      Size = 255
    end
    object QPesquisaFORN_CONTACONTABIL: TIntegerField
      FieldName = 'FORN_CONTACONTABIL'
    end
    object QPesquisaFORN_CONTATO: TStringField
      FieldName = 'FORN_CONTATO'
      Size = 60
    end
    object QPesquisaFORN_COD_CENTRO_CUSTO: TIntegerField
      FieldName = 'FORN_COD_CENTRO_CUSTO'
    end
    object QPesquisaFORN_COD_CLASSIFICACAO_FIN: TIntegerField
      FieldName = 'FORN_COD_CLASSIFICACAO_FIN'
    end
    object QPesquisaFORN_GRUPO: TStringField
      FieldName = 'FORN_GRUPO'
      FixedChar = True
      Size = 1
    end
    object QPesquisaFORN_FK_GRUPO: TIntegerField
      FieldName = 'FORN_FK_GRUPO'
    end
    object QPesquisaFORN_VALOR_LIMITE: TFloatField
      FieldName = 'FORN_VALOR_LIMITE'
    end
    object QPesquisaFORN_DATA_LIMITE: TDateTimeField
      FieldName = 'FORN_DATA_LIMITE'
    end
    object QPesquisaFORN_VALOR_CREDITO: TFloatField
      FieldName = 'FORN_VALOR_CREDITO'
    end
    object QPesquisaFORN_OBS_LIMITE: TStringField
      FieldName = 'FORN_OBS_LIMITE'
      Size = 255
    end
    object QPesquisaFORN_MR: TStringField
      FieldName = 'FORN_MR'
      FixedChar = True
      Size = 1
    end
    object QPesquisaPROD_DATA_MR: TDateTimeField
      FieldName = 'PROD_DATA_MR'
    end
    object QPesquisaFORN_NATUREZA: TStringField
      FieldName = 'FORN_NATUREZA'
      FixedChar = True
      Size = 1
    end
    object QPesquisaFORN_SITE: TStringField
      FieldName = 'FORN_SITE'
      Size = 40
    end
    object QPesquisaSOL_CENTROCUSTO_DESC: TStringField
      FieldName = 'SOL_CENTROCUSTO_DESC'
      Size = 60
    end
    object QPesquisaPROD_REFERENCIA: TStringField
      FieldName = 'PROD_REFERENCIA'
    end
    object QPesquisaPROF_REF_FABRICANTE: TStringField
      FieldName = 'PROF_REF_FABRICANTE'
    end
  end
  inherited DSPesquisa: TDataSource
    Left = 200
    Top = 494
  end
  object dsFornecedor: TDataSource
    DataSet = DMGestao.QFornecedor
    Left = 32
    Top = 208
  end
end
